import user from './user'
import variable from './variable'
import { createContext, useContext } from 'react'
import VideoSwiper from './videoSwiper'
import HomeStore from './home'

class Index {
  userStore = user
  variableStore = variable
  videoSwiperStore = VideoSwiper
  HomeStore = HomeStore
}

const index = new Index()

const context = createContext(index)
function useStore() {
  return useContext(context)
}
export { useStore }
